home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / PInterfaces / CRMSerialDevices.p < prev    next >
Encoding:
Text File  |  1992-01-29  |  1.4 KB  |  72 lines  |  [TEXT/MPS ]

  1.  
  2. {
  3. Created: Wednesday, September 11, 1991 at 2:05 PM
  4.  CRMSerialDevices.p
  5.  Pascal Interface to the Macintosh Libraries
  6.  
  7.   Copyright Apple Computer, Inc. 1988-1991
  8.   All rights reserved
  9. }
  10.  
  11.  
  12. {$IFC UNDEFINED UsingIncludes}
  13. {$SETC UsingIncludes := 0}
  14. {$ENDC}
  15.  
  16. {$IFC NOT UsingIncludes}
  17.  UNIT CRMSerialDevices;
  18.  INTERFACE
  19. {$ENDC}
  20.  
  21. {$IFC UNDEFINED UsingCRMSerialDevices}
  22. {$SETC UsingCRMSerialDevices := 1}
  23.  
  24. {$I+}
  25. {$SETC CRMSerialDevicesIncludes := UsingIncludes}
  26. {$SETC UsingIncludes := 1}
  27. {$IFC UNDEFINED UsingTypes}
  28. {$I $$Shell(PInterfaces)Types.p}
  29. {$ENDC}
  30. {$SETC UsingIncludes := CRMSerialDevicesIncludes}
  31.  
  32. CONST
  33.  
  34. {    for the crmDeviceType field of the CRMRec data structure }
  35. crmSerialDevice = 1;
  36.  
  37.  
  38. {  version of the CRMSerialRecord below }
  39. curCRMSerRecVers = 1;
  40.  
  41. TYPE
  42. { Maintains compatibility w/ apps & tools that expect an old style icon    }
  43. CRMIconPtr = ^CRMIconRecord;
  44. CRMIconHandle = ^CRMIconPtr;
  45. CRMIconRecord = RECORD
  46.  oldIcon: ARRAY [0..31] OF LONGINT;        { ICN#    }
  47.  oldMask: ARRAY [0..31] OF LONGINT;
  48.  theSuite: Handle;                        { Handle to an IconSuite    }
  49.  reserved: LONGINT;
  50.  END;
  51.  
  52. CRMSerialPtr = ^CRMSerialRecord;
  53. CRMSerialRecord = RECORD
  54.  version: INTEGER;
  55.  inputDriverName: StringHandle;
  56.  outputDriverName: StringHandle;
  57.  name: StringHandle;
  58.  deviceIcon: CRMIconHandle;
  59.  ratedSpeed: LONGINT;
  60.  maxSpeed: LONGINT;
  61.  reserved: LONGINT;
  62.  END;
  63.  
  64.  
  65.  
  66. {$ENDC} { UsingCRMSerialDevices }
  67.  
  68. {$IFC NOT UsingIncludes}
  69.  END.
  70. {$ENDC}
  71.  
  72.